<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<jsp:directive.page language="java"
	contentType="text/html; charset=UTF-8" pageEncoding="UTF-8" />
<html xmlns="http://www.w3.org/1999/xhtml">
	<head>
		<title>在线订单列表</title>
		<%@ include file="/commons/includes/head.jspf"%>
		<%@ include file="/commons/extremecomponents/extremetable.jspf"%>
		<%@ include file="/commons/manage/content.jspf"%>
		<script type="text/javascript"
			src="<c:url value="/commons/scripts/calendar.js" />"></script>
		<script type="text/javascript" src="messageList.js"></script>
	</head>
	<body>
		<form name="messageList" action="messageList.shtml" method="post">
			<input type="hidden" id="event" name="event" />
			<input type="hidden" name="ec_f_state" value="${param.ec_f_state}" />
			<input type="hidden" name="ec_f_exstate"
				value="${param.ec_f_exstate}" />
			<input type="hidden" name="queryNow" value="${param.queryNow}" />
			<div class="contBtnDiv">
				<span class="contBtn contBtnDel" id="btnDel">删 除</span>
				<span class="contBtn contBtnSearch" id="btnQuery">查 询</span>
			</div>
			<div class="showSearchDiv">
				<div class="downBtn"></div>
			</div>
			<div class="searchDiv">
				<table style="width: 100%;">
					<tr>
						<td align="center" width="15%">
							留言主题：
						</td>
						<td style="width: 35%;">
							<input type="text" class="text" name="ec_f_title"
								value="${param.ec_f_title}" style="width: 250px;" />
						</td>
					</tr>
					<tr>
						<td align="center">
							留言时间：
						</td>
						<td>
							<input type="text" class="text" name="ec_f_submitTimeBegin"
								value="${param.ec_f_submitTimeBegin}" onfocus="calendar();"
								style="width: 115px;" readonly="readonly" />
							至
							<input type="text" class="text" name="ec_f_submitTimeEnd"
								value="${param.ec_f_submitTimeEnd}" onfocus="calendar();"
								style="width: 115px;" readonly="readonly" />
						</td>
						<td align="center">
							留言人：
						</td>
						<td>
							<input type="text" class="text" name="ec_f_submiter"
								value="${param.ec_f_submiter}" style="width: 250px;" />
						</td>
					</tr>
					<tr>
						<td align="center">
							咨询内容：
						</td>
						<td colspan="3">
							<input type="text" class="text" name="ec_f_question"
								value="${param.ec_f_question}" style="width: 657px;" />
						</td>
					</tr>
				</table>
			</div>
			<ec:table items="messageList" var="message" theme="eXtManage"
				view="manage" form="messageList" action="messageList.shtml">
				<ec:row>
					<c:url var="editUrl" value="messageEdit.shtml?id=${message.id}" />
					<ec:column property="id" sortable="false"
						headerStyle="text-align: center;"
						style="text-align: center; width: 50px;"
						title="<input type='checkbox' title='全选' onclick='javascript: selectAll(\"selectedIds\");' />">
						<input type="checkbox" name="selectedIds" value="${message.id}" />
					</ec:column>
					<ec:column property="title" title="留言主题" alias="TITLE_"
						style="width: 150px;">
						<div class="showShort" style="width: 150px;"
							title="${message.title}">
							<a href="${editUrl}"><c:out value="${message.title}" /> </a>
						</div>
					</ec:column>
					<ec:column property="submiter" title="留言人" alias="SUBMITER_"
						style="width: 80px;">
						<a href="${editUrl}"><c:out value="${message.submiter}" /> </a>
					</ec:column>
					<ec:column property="submitTime" title="留言时间" alias="SUBMIT_TIME_"
						style="width: 110px;">
						<a href="${editUrl}"><fmt:formatDate
								value="${message.submitTime}" pattern="yyyy-MM-dd HH:mm" /> </a>
					</ec:column>
					<ec:column property="question" title="留言内容" alias="QUSTN_">
						<div class="showShort" style="width: 230px;"
							title="${message.question}">
							<a href="${editUrl}"><c:out value="${message.question}" /> </a>
						</div>
					</ec:column>
					<c:if test="${param.ec_f_state eq 'REPLIED'}">
						<ec:column property="expert" title="处理人 " alias="EXPERT_"
							style="width: 100px;">
							<a href="${editUrl}"><c:out value="${message.expert}" /> </a>
						</ec:column>
						<ec:column property="replyTime" title="处理时间" alias="RE_TIME_"
							style="width: 140px;">
							<a href="${editUrl}"><fmt:formatDate
									value="${message.replyTime}" pattern="yyyy-MM-dd HH:mm" /> </a>
						</ec:column>
						<ec:column property="reply" title="处理内容 " alias="REPLY_"
							style="width: 100px;">
							<a href="${editUrl}"><c:out value="${message.reply}" /> </a>
						</ec:column>
					</c:if>
				</ec:row>
			</ec:table>
		</form>
	</body>
</html>